{include file=header.html}
<script language="javascript" type="text/javascript" src="{res file=js/jquery-1.2.6.js}"></script>
<script language="javascript" type="text/javascript" src="{lib file=jquery.plugins/jquery.validate.js}"></script>
<script language="javascript" type="text/javascript" src="{res file=js/common.js}"></script>
<script language="javascript" type="text/javascript" src="{res file=js/lan.js}"></script>
<link href="template/style/css/style.css" type="text/css" rel="stylesheet" />
<style>
label.error {color:red;}
.tab-frame td {padding:5px 2px; text-align:left;}
.tab-search td {padding:2px 5px;}
.tab-frame td.right {text-align:right;}
.tab-frame td.center {text-align:center;}
</style>
    </head>
    <body>
        <div class="sub-body">
	<h3 class="title-1 tab-frame">{$lang.evaluate_total}</h3>
		<div id="head">
            <a href="javascript:;" onclick="$('#search').slideToggle();">收起/展开</a>
            <div  id="search">
                <div class="tab-frame-s">
                <form action="" method="get">
                        	<input type="hidden" name="app" value="evaluate" />
                            <input type="hidden" name="act" value="eval_total" />
                            <!-- {if $merchandiser} -->
                            <input type="hidden" name="merchandiser" value="{$merchandiser}" />
                            <!-- {/if} -->
                    <table width="900" cellspacing="0" cellpadding="0" class="search" >
                    <tr>
                         <th width="100" class="right">年：</th>
                         <td><select name="year" id="year">
                                <option value="0">全部</option>
                                <!--{foreach from=$years item=year}-->
                                <option value="{$year}"{if $this_year == $year} selected{/if}>{$year}</option>
                                <!--{/foreach}-->
                            </select></td>
                        <th width="100" class="right">月：</th>
                         <td><select name="month" id="month">
                                <option value="0">全部</option>
                                <!--{foreach from=$months item=month}-->
                                <option value="{$month}"{if $this_month == $month} selected{/if}>{$month}</option>
                                <!--{/foreach}-->
                            </select></td>
						<td><input type="hidden" name="order" id="order" value="{if $smarty.get.order}{$smarty.get.order}{else}evaluate_time-DESC{/if}" />
                        	<input type="submit" name="search" value="查询" class="btn-2" /></td>
                    </tr>
                </table>
                    </form>
                </div>
                <script>
                    <!--{if $role==USER_MERCHANDISER}-->
                       $('#merchandiser_id option:first-child').remove();
                       $('#merchandiser_id').val('{$user.user_id}');
                       $('#merchandiser_id').attr('readonly','readonly');
                    <!--{/if}-->
                </script>
            </div>
            </div>
            <div class="tab_info" id="order_list">
                <div class="tab-title-1"><span>统计信息</span></div>
                <table width="100%" cellspacing="0" cellpadding="0" class="tab-display" id="tab-color">
                    <tr>
                        <th width="120" colspan="2">样板</th>
                        <th width="180" colspan="3">回板速度</th>
                        <th width="180" colspan="3">回板标准</th>
                        <th width="180" colspan="3">价格</th>
                        <th width="180" colspan="3">配合度</th>
                    </tr>
                    <tr>
                    	<th width="60">工厂</th>
                        <th width="60">样板数</th>
                        <th width="60">好评</th>
                        <th width="60">中评</th>
                        <th width="60">差评</th>
                        <th width="60">好评</th>
                        <th width="60">中评</th>
                        <th width="60">差评</th>
                        <th width="60">好评</th>
                        <th width="60">中评</th>
                        <th width="60">差评</th>
                        <th width="60">好评</th>
                        <th width="60">中评</th>
                        <th width="60">差评</th>
                    </tr>
                    <!--{foreach from=$total_list item=eval}-->
                    <tr>
                        <td>{$eval.factory_name}</td>
                        <td>{$eval.quantity|default:0}</td>
						<td>{$eval.good_speed_num|default:0}</td>
						<td>{$eval.common_speed_num|default:0}</td>
						<td>{$eval.bad_speed_num|default:0}</td>
						<td>{$eval.good_demand_num|default:0}</td>
						<td>{$eval.common_demand_num|default:0}</td>
						<td>{$eval.bad_demand_num|default:0}</td>
						<td>{$eval.good_price_num|default:0}</td>
						<td>{$eval.common_price_num|default:0}</td>
						<td>{$eval.bad_price_num|default:0}</td>
						<td>{$eval.good_cooperate_num|default:0}</td>
						<td>{$eval.common_cooperate_num|default:0}</td>
						<td>{$eval.bad_cooperate_num|default:0}</td>
                    </tr>
                    <!--{/foreach}-->
                </table>
                <div class="page">
                  {include file=page.html}</div>
            </div>
            <script language="JavaScript">
                function create_order(){
                   location.href='index.php?app=order&act=add';
                    return;
                   $('#head').hide();
                    $('#order_list').hide();
                    $('#order_info').hide().load('{$siteurl}/index.php?app=order&act=add','',function(){
                        $.get('{$siteurl}/index.php?app=order&act=add',function(data){
                            $('#order_info').html(data);
                        });
                      $('#order_info').fadeIn('slow');});
                }
                
            </script>


            <div id="order_info">
                
            
            </div>
        </div>
<script language="javascript" type="text/javascript" src="{res file=js/tab_color.js}"></script>
    </body>
</html>

